body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

ul.box {
    position: relative;
    width: 600px;
    height: 280px;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: pink;
    overflow: hidden;
}

li.slide {
    margin: 0;
    padding: 0;
    width: inherit;
    height: inherit;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Helvetica;
    font-size: 120px;
    color: #fff;
    transition: 0.5s transform ease-in-out;
}

.slide:nth-of-type(1) {
    background-color: #f2e205;
}

.slide:nth-of-type(2) {
    background-color: #f25c05;
    left: 100%;
}

.slide:nth-of-type(3) {
    background-color: #495f8c;
    left: 200%;
}

input[type="radio"] {
    position: relative;
    z-index: 100;
    display: none;
}

.controls-visible {
    position: absolute;
    width: 100%;
    bottom: 12px;
    text-align: center;
}

.controls-visible label {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 3px;
    border: 2px solid #fff;
}

.box input[type="radio"]:nth-of-type(1):checked~.controls-visible label:nth-of-type(1) {
    background-color: #333;
}

.box input[type="radio"]:nth-of-type(2):checked~.controls-visible label:nth-of-type(2) {
    background-color: #333;
}

.box input[type="radio"]:nth-of-type(3):checked~.controls-visible label:nth-of-type(3) {
    background-color: #333;
}

.box input[type="radio"]:nth-of-type(1):checked~.slide {
    transform: translateX(0%);
}

.box input[type="radio"]:nth-of-type(2):checked~.slide {
    transform: translateX(-100%);
}

.box input[type="radio"]:nth-of-type(3):checked~.slide {
    transform: translateX(-200%);
}